package com.fit.dao.degree;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.Degree;

public interface DegreeDAO {

	@CommitAfter
	public boolean save(Degree newDegree);

	@CommitAfter
	public boolean delete(Degree degree);

	@CommitAfter
	public boolean update(Degree degree);

	public List<Degree> findAll();
	
	public Degree findByID(Long id);

	@CommitAfter
	public boolean deleteByID(Long id);
}
